home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
opttree.zip
/
OWL.ZIP
/
OTTSTAPP.RC
< prev
next >
Wrap
Text File
|
1995-01-03
|
15KB
|
383 lines
/* Main ottest
Freeman-Teresa Software
Copyright ⌐ 1994. All Rights Reserved.
SUBSYSTEM: ottest.exe Application
FILE: ottstapp.rc
AUTHOR: Kent Tong
OVERVIEW
========
All resources defined here.
*/
#if !defined(WORKSHOP_INVOKED)
#include <windows.h>
#endif
#include "ottstapp.rh"
SDI_MENU MENU
{
POPUP "&File"
{
MENUITEM "E&xit\tAlt+F4", CM_EXIT
}
POPUP "F&unctionality"
{
MENUITEM "As Option Tree ", CM_TEST1
MENUITEM "As Option List", CM_TEST2
MENUITEM "As Tree View", CM_TEST3
MENUITEM "As List Box", CM_TEST4
}
POPUP "&Capacity"
{
MENUITEM "10000 Items Option Tree", CM_TEST5
MENUITEM "10000 Items Option List", CM_TEST6
MENUITEM "10000 Items Tree View", CM_TEST7
MENUITEM "10000 Items List Box", CM_TEST8
}
POPUP "&Help"
{
MENUITEM "&About...", CM_HELPABOUT
}
}
// Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
SDI_MENU ACCELERATORS
BEGIN
VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
VK_BACK, CM_EDITUNDO, VIRTKEY, ALT
VK_F3, CM_EDITFINDNEXT, VIRTKEY
END
//
// Table of help hints displayed in the status bar.
//
STRINGTABLE
{
-1, "File/document operations"
CM_FILENEW, "Creates a new window"
CM_FILEOPEN, "Opens a window"
CM_FILECLOSE, "Close this document"
CM_FILESAVE, "Saves this document"
CM_FILESAVEAS, "Saves this document with a new name"
CM_EXIT, "Quits the test application"
CM_EDITUNDO -1, "Edit operations"
CM_EDITUNDO, "Reverses the last operation"
CM_EDITCUT, "Cuts the selection and puts it on the Clipboard"
CM_EDITCOPY, "Copies the selection and puts it on the Clipboard"
CM_EDITPASTE, "Inserts the clipboard contents at the insertion point"
CM_EDITDELETE, "Deletes the selection"
CM_EDITCLEAR, "Clear the document"
CM_EDITFIND -1, "Search/replace operations"
CM_EDITFIND, "Finds the specified text"
CM_EDITREPLACE, "Finds the specified text and changes it"
CM_EDITFINDNEXT, "Finds the next match"
CM_HELPABOUT -1, "Access About"
CM_HELPABOUT, "About the ottest application"
CM_TEST1, "Use the custom control at its full versatility"
CM_TEST2, "Use the custom control as an option list"
CM_TEST3, "Use the custom control as a tree view"
CM_TEST11, "An option tree with 2000 items"
CM_TEST12, "An option tree with 4000 items"
CM_TEST13, "An option tree with 6000 items"
CM_TEST14, "An option tree with 8000 items"
CM_TEST5, "An option tree with 10000 items"
CM_TEST21, "An option list with 2000 items"
CM_TEST22, "An option list with 4000 items"
CM_TEST23, "An option list with 6000 items"
CM_TEST24, "An option list with 8000 items"
CM_TEST6, "An option list with 10000 items"
CM_TEST31, "A tree with 2000 items"
CM_TEST32, "A tree with 4000 items"
CM_TEST33, "A tree with 6000 items"
CM_TEST34, "A tree with 8000 items"
CM_TEST7, "A tree with 10000 items"
CM_TEST4, "Use the custom control as a usual listbox"
CM_TEST41, "A listbox with 2000 items"
CM_TEST42, "A listbox with 4000 items"
CM_TEST43, "A listbox with 6000 items"
CM_TEST44, "A listbox with 8000 items"
CM_TEST8, "A listbox with 10000 items"
}
//
// OWL string table
//
// EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_CANNOTFIND, "Cannot find ""%s""."
IDS_UNTITLED, "Untitled"
IDS_UNABLEREAD, "Unable to read file %s from disk."
IDS_UNABLEWRITE, "Unable to write file %s to disk."
IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?"
IDS_FILEFILTER, "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
END
// Exception string resources (include\owl\except.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_OWLEXCEPTION, "ObjectWindows Exception"
IDS_UNHANDLEDXMSG, "Unhandled Exception"
IDS_OKTORESUME, "OK to resume?"
IDS_UNKNOWNEXCEPTION, "Unknown exception"
IDS_UNKNOWNERROR, "Unknown error"
IDS_NOAPP, "No application object"
IDS_OUTOFMEMORY, "Out of memory"
IDS_INVALIDMODULE, "Invalid module specified for window"
IDS_INVALIDMAINWINDOW, "Invalid MainWindow"
IDS_INVALIDWINDOW, "Invalid window %s"
IDS_INVALIDCHILDWINDOW, "Invalid child window %s"
IDS_INVALIDCLIENTWINDOW, "Invalid client window %s"
IDS_CLASSREGISTERFAIL, "Class registration fail for window %s"
IDS_CHILDREGISTERFAIL, "Child class registration fail for window %s"
IDS_WINDOWCREATEFAIL, "Create fail for window %s"
IDS_WINDOWEXECUTEFAIL, "Execute fail for window %s"
IDS_CHILDCREATEFAIL, "Child create fail for window %s"
IDS_MENUFAILURE, "Menu creation failure"
IDS_VALIDATORSYNTAX, "Validator syntax error"
IDS_PRINTERERROR, "Printer error"
IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
IDS_LAYOUTBADRELWIN, "Invalid relative window specified in layout constraint in window %s"
IDS_GDIFAILURE, "GDI failure"
IDS_GDIALLOCFAIL, "GDI allocate failure"
IDS_GDICREATEFAIL, "GDI creation failure"
IDS_GDIRESLOADFAIL, "GDI resource load failure"
IDS_GDIFILEREADFAIL, "GDI file read failure"
IDS_GDIDELETEFAIL, "GDI object %X delete failure"
IDS_GDIDESTROYFAIL, "GDI object %X destroy failure"
IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
END
// General Window's status bar messages. (include\owl\statusba.rc)
STRINGTABLE
BEGIN
IDS_MODES "EXT|CAPS|NUM|SCRL|OVR|REC"
SC_SIZE, "Changes the size of the window"
SC_MOVE, "Moves the window to another position"
SC_MINIMIZE, "Reduces the window to an icon"
SC_MAXIMIZE, "Enlarges the window to it maximum size"
SC_RESTORE, "Restores the window to its previous size"
SC_CLOSE, "Closes the window"
SC_TASKLIST, "Opens task list"
SC_NEXTWINDOW, "Switches to next window"
END
// Validator messages (include\owl\validate.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_VALPXPCONFORM "Input does not conform to picture:\n""%s"""
IDS_VALINVALIDCHAR "Invalid character in input"
IDS_VALNOTINRANGE "Value is not in the range %ld to %ld."
IDS_VALNOTINLIST "Input is not in valid-list"
END
//
// Misc application definitions
//
// Application ICON
IDI_SDIAPPLICATION ICON "applsdi.ico"
// About box.
// BWCC bitmaps for the about box.
#define IDB_BWCC_ABOUT_ICON 1450
#define IDB_BWCC_ABOUT_ICON2 2450 // This definition is for EGA and related video modes.
IDB_BWCC_ABOUT_ICON BITMAP "borabout.bmp"
IDB_BWCC_ABOUT_ICON2 BITMAP "borabout.bmp"
IDD_ABOUT DIALOG 56, 40, 199, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CLASS "bordlg_gray"
CAPTION "About ottest"
FONT 8, "MS Sans Serif"
{
CONTROL "", -1, "BorShade", BSS_GROUP | BSS_CAPTION | BSS_LEFT | WS_CHILD | WS_VISIBLE, 48, 6, 144, 51
CONTROL "Version", IDC_VERSION, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 18, 138, 9
CONTROL "Button", IDB_BWCC_ABOUT_ICON - 1000, "BorBtn", BBS_BITMAP | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 6, 9, 39, 42
CONTROL "Option Tree Test (OWL)", -1, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 9, 138, 9
CONTROL "", IDC_COPYRIGHT, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 27, 138, 27
CONTROL "", IDC_DEBUG, "BorStatic", SS_RIGHT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 131, 87, 66, 8
CONTROL "", IDOK, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 81, 66, 37, 25
}
// TInputDialog class dialog box.
IDD_INPUTDIALOG DIALOG 20, 24, 180, 70
STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
CLASS "bordlg"
FONT 8, "Helv"
BEGIN
LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
CONTROL "Button", IDOK, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 47, 42, 37, 26
CONTROL "Button", IDCANCEL, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 93, 42, 38, 25
END
// Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE
BEGIN
'42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
'00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
'00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
'00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
'00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
'00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
'00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
'00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
'00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
'77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
'00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
'88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
'77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
'00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
'88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
'77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
'00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
'88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
'77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
'00 00 0F F7 77 78 00 88 77 77 70 00 00 00 0F FF'
'FF FF 00 88 88 88 80 00 00 00 B0 00 00 00 BB 00'
'00 00 0B 00 00 00'
END
// Vertical slider thumb bitmap for TSlider and HSlider (include\owl\slider.rc)
IDB_VSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE
BEGIN
'42 4D 2A 01 00 00 00 00 00 00 76 00 00 00 28 00'
'00 00 28 00 00 00 09 00 00 00 01 00 04 00 00 00'
'00 00 B4 00 00 00 00 00 00 00 00 00 00 00 00 00'
'00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
'00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
'00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
'00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
'00 00 FF FF FF 00 B0 00 00 00 00 00 00 00 00 0B'
'B0 00 00 00 00 00 00 00 00 0B 0F 88 88 88 88 88'
'88 88 88 80 08 88 88 88 88 88 88 88 88 80 0F 77'
'77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
'77 80 0F 77 FF FF FF FF FF FF F7 80 08 77 FF FF'
'FF FF FF FF F7 80 0F 70 00 00 00 00 00 00 77 80'
'08 70 00 00 00 00 00 00 77 80 0F 77 77 77 77 77'
'77 77 77 80 08 77 77 77 77 77 77 77 77 80 0F 77'
'77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
'77 80 0F FF FF FF FF FF FF FF FF F0 08 88 88 88'
'88 88 88 88 88 80 B0 00 00 00 00 00 00 00 00 0B'
'B0 00 00 00 00 00 00 00 00 0B'
END
// Version info.
//
#if !defined(__DEBUG_)
// Non-Debug VERSIONINFO
1 VERSIONINFO LOADONCALL MOVEABLE
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEFLAGSMASK 0
FILEFLAGS VS_FFI_FILEFLAGSMASK
FILEOS VOS__WINDOWS16
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
// Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
BLOCK "040904E4" // Matches VarFileInfo Translation hex value.
BEGIN
VALUE "CompanyName", "Freeman-Teresa Software\000"
VALUE "FileDescription", "ottest for Windows\000"
VALUE "FileVersion", "1.0\000"
VALUE "InternalName", "ottest\000"
VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
VALUE "LegalTrademarks", "Windows /231 is a trademark of Microsoft Corporation\000"
VALUE "OriginalFilename", "ottest.EXE\000"
VALUE "ProductName", "ottest\000"
VALUE "ProductVersion", "1.0\000"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x04e4, 0x0409 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
END
END
#else
// Debug VERSIONINFO
1 VERSIONINFO LOADONCALL MOVEABLE
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
FILEFLAGS VS_FFI_FILEFLAGSMASK
FILEOS VOS__WINDOWS16
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
// Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
BLOCK "040904E4" // Matches VarFileInfo Translation hex value.
BEGIN
VALUE "CompanyName", "Freeman-Teresa Software\000"
VALUE "FileDescription", "ottest for Windows\000"
VALUE "FileVersion", "1.0\000"
VALUE "InternalName", "ottest\000"
VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
VALUE "LegalTrademarks", "Windows \231 is a trademark of Microsoft Corporation\000"
VALUE "OriginalFilename", "ottest.EXE\000"
VALUE "ProductName", "ottest\000"
VALUE "ProductVersion", "1.0\000"
VALUE "SpecialBuild", "Debug Version\000"
VALUE "PrivateBuild", "Built by Kent Tong\000"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x04e4, 0x0409 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
END
END
#endif
DLGTEST DIALOG 110, 39, 197, 194
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 9, "helv"
{
DEFPUSHBUTTON "&OK", 1, 155, 10, 34, 14
LTEXT "", 102, 17, 143, 122, 36, SS_NOPREFIX | WS_GROUP
GROUPBOX "Description", -1, 10, 128, 135, 58, BS_GROUPBOX
CTEXT "pos and size of the option tree control", 101, 10, 10, 135, 107, SS_CENTER | WS_BORDER | WS_GROUP
}